<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include  file="../jsp/userControl.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String courseId = request.getParameter("courseId");
	request.setAttribute("courseId", courseId);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css" href="css/resourceUpload.css" />
</head>

<body>
	<form class="contact_form" action="questionAdd?courseId=${courseId}"
		method="post" name="contact_form">
		<ul>
			<li>
				<h2>发布问题</h2>
			</li>
			<li>
				<label for="name">问题名:</label> 
				<input type="text" name="questionHead" maxlength="30" />
			</li>
			<li>
				<label for="message">问题内容:</label> 
				<textarea name="questionBody" rows="10" cols="20"></textarea></li>
			<li>
				<button class="submit" type="submit">发布咯</button>
			</li>
		</ul>
	</form>
</body>
</html>
